# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),                   
    (r'^image/(?P<path>.*)$','pub.views.look'),
    (r'^$', 'main.views.index', {'template_name':'index.html'}),
    (r'^order/$', 'main.views.order', {'template_name':'order.html'}),
    (r'^order/', include('order.urls')),
    (r'^priv/$', 'main.views.index', {'template_name':'priv.html'}),
    (r'^share/$', 'main.views.index', {'template_name':'share.html'}),
    (r'^test/$', 'main.views.test', {'template_name':'rong/colorbox.html'}),
    
    #餐厅门户
    (r'^rest/(?P<alias>\w+)/$', 'main.views.show_rest'),
    (r'^rest/(?P<alias>\w+)/spec/$', 'main.views.show_spec_dish'),
    (r'^rest/(?P<alias>\w+)/comments/$', 'main.views.show_comment_dish'),
    (r'^rest/(?P<alias>\w+)/dish/$', 'main.views.show_dish'),
    (r'^rest/(?P<alias>\w+)/traffic/$', 'main.views.show_traffic'),
    #用户注册与登录
    (r'^accounts/', include('register.urls')),
    #用户后台
    (r'^space/', include('space.urls')),
    (r'select/$','main.views.index'),
    (r'change/cuisines/(?P<pk>\d+)/$','pub.views.changeCuisines')
)
